package com.database.service.impl;


import com.database.character.Post;
import com.database.mapper.PostMapper;
import com.database.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PostServiceImpl implements PostService {

  @Autowired
  private PostMapper postMapper;

  @Override
  public List<Post> getPostBySearch(String search) {
    return postMapper.getPostBySearch(search);
  }
}
